<div class="module-content module-vertical" *ngIf="object">
    <div class="module-header">
        <div class="module-header-title">
            <nz-breadcrumb>
                <nz-breadcrumb-item>
                    <a [routerLink]="'list'">学生列表</a>
                </nz-breadcrumb-item>
                <nz-breadcrumb-item>
                    学生信息
                </nz-breadcrumb-item>
            </nz-breadcrumb>
        </div>
    </div>
    <div class="module-body module-body-row">
        <div class="panel">
            <div class="panel-body grid-column-3">
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="name">姓名</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="name" type="text" [(ngModel)]="object.name" required>
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="code">学号</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="code" type="text" [(ngModel)]="object.code">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="level">年级</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                        <nz-select name="level" [(ngModel)]="object.level" required>
                            <nz-option [nzValue]="2018" nzLabel="2018"></nz-option>
                            <nz-option [nzValue]="2019" nzLabel="2019"></nz-option>
                            <nz-option [nzValue]="2020" nzLabel="2020"></nz-option>
                        </nz-select>
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="email">邮箱</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="email" type="text" [(ngModel)]="object.email">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="mobile">电话</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="mobile" type="text" [(ngModel)]="object.mobile">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item style="grid-column: 1 / -1;">
                    <nz-form-label [nzSpan]="2" nzFor="description">简介</nz-form-label>
                    <nz-form-control [nzSpan]="22">
                      <textarea nz-input name="description" rows="3" [(ngModel)]="object.description"></textarea>
                    </nz-form-control>
                </nz-form-item>
              
            </div>
        </div>
    </div>
    <div class="module-footer">
        <div class="module-footer-left">
            <button nz-button nzType="primary" nzDanger (click)="delete()">删除</button>
        </div>
        <div class="module-footer-right">
            <button nz-button nzType="default" (click)="cancel()">返回</button>
            <button nz-button nzType="primary" (click)="save()">保存</button>
        </div>
    </div>
</div>

